/**
 * 
 */
package classexercise;

/**
 * @author qingke
 *
 */
public class Circle {
      
	private double radius=1.0;
	private String color ="red";
	
	public  Circle(){}
	public Circle(double radius){
		    this.radius=radius;
	}
	
	public Circle(double radius,String color){
		this.radius=radius;
		this.color=color;
	}
	
	public double getRaidus() {
		return radius;
	}
	public void setRaidus(double radius) {
		this.radius = radius;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public double getArea(){
		   double area =2*radius*Math.PI;
		   return area;
	}
	
	public String toString(){
		 String str ="Circle[radius="+radius+",color="+color+"]";
		 return str;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
